using Godot;
using System;
public static class ExEntity
{
    public static void SetSpriteTexture(this Entity entity, String node, ItemMateria item)
    {
        entity.GetNode<Sprite>(node).SetTexture(item.texture);
    }
    public static void SetSpriteTexture(this Entity entity, String node, Texture textrue)
    {
        entity.GetNode<Sprite>(node).SetTexture(textrue);
    }
    public static void SetLabelText(this Entity entity, String node, String Text)
    {
        entity.GetNode<Label>(node).SetText(Text);
    }
    public static void PlayAnimation(this Entity entity, String node, String animation)
    {
        entity.GetNode<AnimationPlayer>(node).Play(animation);
    }
}